* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    display: flex;
    min-height: 100vh;
    background-color: #f5f5f5;
}

/* 左侧菜单栏样式 */
.sidebar {
    width: 220px;
    background-color: #2c3e50;
    color: white;
    height: 100vh;
    position: fixed;
    padding-top: 20px;
}

.user-info {
    text-align: center;
    padding: 20px 10px;
    border-bottom: 1px solid #34495e;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.user-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.user-level {
    font-size: 12px;
    color: #bdc3c7;
}

.menu {
    margin-top: 20px;
}

.menu-item {
    padding: 12px 20px;
    color: #ecf0f1;
    text-decoration: none;
    display: block;
    transition: all 0.3s;
}

.menu-item:hover {
    background-color: #34495e;
}

.menu-item.active {
    background-color: #3498db;
    border-left: 4px solid #2980b9;
}

.menu-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* 主内容区样式 */
.main-content {
    flex: 1;
    margin-left: 220px;
    padding: 20px;
    width: calc(100% - 220px);
}

.content-header {
    background-color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.content-body {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    min-height: 80vh;
}

.profile-container {
    padding: 20px;
}

.profile-header {
    text-align: center;
    margin-bottom: 30px;
}

.avatar-section .user-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ddd;
    margin-bottom: 15px;
}

.profile-info {
    max-width: 600px;
    margin: 0 auto;
}

.info-item {
    display: flex;
    margin-bottom: 20px;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.info-item label {
    font-weight: bold;
    width: 100px;
    color: #666;
}

.info-item span {
    flex: 1;
}

.status-active {
    color: green;
    font-weight: bold;
}

.status-inactive {
    color: red;
    font-weight: bold;
}

.profile-container {
    padding: 20px;
}

.form-group {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.form-label {
    width: 100px;
    font-weight: bold;
    color: #666;
    margin-right: 20px;
}

.form-input, .form-textarea {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-textarea {
    height: 80px;
    resize: vertical;
}

.save-btn, .cancel-btn {
    margin-left: 10px;
    padding: 8px 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.save-btn:hover {
    background-color: #2980b9;
}

.avatar-upload-section {
    display: flex;
    align-items: center;
}

.user-avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
    border: 2px solid #ddd;
}

.avatar-upload-btn .btn {
    padding: 8px 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.avatar-upload-btn .btn:hover {
    background-color: #2980b9;
}

.change-email-container {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.change-email-header {
    text-align: center;
    margin-bottom: 30px;
}

.change-email-header h2 {
    color: #333;
    margin-bottom: 10px;
}

.email-info {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 25px;
    text-align: center;
}

.email-info p {
    margin: 0 0 10px 0;
    color: #666;
}

.current-email {
    font-size: 18px;
    font-weight: bold;
    color: #3498db !important;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.captcha-input-group {
    display: flex;
    gap: 10px;
}

.captcha-input-group .form-input {
    flex: 1;
}

.old-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    transition: background-color 0.3s;
}

.old-btn-primary {
    background-color: #3498db;
    color: white;
}

.old-btn-primary:hover {
    background-color: #2980b9;
}

.old-btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.old-btn-secondary:hover {
    background-color: #7f8c8d;
}

.old-btn-secondary:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.old-btn-default {
    background-color: #ecf0f1;
    color: #333;
    text-decoration: none;
    display: inline-block;
    padding: 12px 20px;
}

.old-btn-default:hover {
    background-color: #bdc3c7;
}

.next-btn, .cancel-next-btn {
    width: 45%;
    margin-bottom: 10px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-sizing: border-box;
    margin-right: 5%;
}

.cancel-next-btn {
    margin-right: 0;
}

/* 确保按钮容器居中 */
.form-group {
    text-align: center;
}

.button-group {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.button-wrapper {
    display: flex;
    gap: 10px;
}

.btn-default {
    background-color: #ecf0f1;
    color: #333;
}

.btn-default:hover {
    background-color: #bdc3c7;
}

/* Bootstrap 3 分页样式 */
.pagination {
    display: inline-block;
    padding-left: 0;
    margin: 20px 0;
    border-radius: 4px;
}

.pagination > li {
    display: inline;
}

.pagination > li > a,
.pagination > li > span {
    position: relative;
    float: left;
    padding: 6px 12px;
    margin-left: -1px;
    line-height: 1.42857143;
    color: #337ab7;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #ddd;
}

.pagination > li:first-child > a,
.pagination > li:first-child > span {
    margin-left: 0;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.pagination > li:last-child > a,
.pagination > li:last-child > span {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.pagination > li > a:hover,
.pagination > li > span:hover,
.pagination > li > a:focus,
.pagination > li > span:focus {
    z-index: 2;
    color: #23527c;
    background-color: #eee;
    border-color: #ddd;
}

.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus {
    z-index: 3;
    color: #fff;
    cursor: default;
    background-color: #337ab7;
    border-color: #337ab7;
}

.pagination > .disabled > span,
.pagination > .disabled > span:hover,
.pagination > .disabled > span:focus,
.pagination > .disabled > a,
.pagination > .disabled > a:hover,
.pagination > .disabled > a:focus {
    color: #777;
    cursor: not-allowed;
    background-color: #fff;
    border-color: #ddd;
}

.pagination-lg > li > a,
.pagination-lg > li > span {
    padding: 10px 16px;
    font-size: 18px;
    line-height: 1.3333333;
}

.pagination-lg > li:first-child > a,
.pagination-lg > li:first-child > span {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.pagination-lg > li:last-child > a,
.pagination-lg > li:last-child > span {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.pagination-sm > li > a,
.pagination-sm > li > span {
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.5;
}

.pagination-sm > li:first-child > a,
.pagination-sm > li:first-child > span {
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
}

.pagination-sm > li:last-child > a,
.pagination-sm > li:last-child > span {
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
}


.post-management-container {
    padding: 20px;
}

.post-management-header h2 {
    margin-bottom: 20px;
    color: #333;
}

.posts-list {
    margin-bottom: 20px;
}

.post-item {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 10px; /* 从15px减小到10px */
    margin-bottom: 10px; /* 从15px减小到10px */
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.post-item:hover {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.post-title {
    margin: 0 0 5px 0; /* 从10px减小到5px */
    color: #2c3e50;
    font-size: 16px; /* 从18px减小到16px */
    line-height: 1.3; /* 添加行高控制 */
}

.post-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px; /* 从12px减小到11px */
    color: #999;
    margin-bottom: 10px; /* 从15px减小到10px */
}

.post-actions {
    display: flex;
    gap: 8px; /* 从10px减小到8px */
    justify-content: flex-end;
}

.btn {
    padding: 5px 10px; /* 从6px 12px减小到5px 10px */
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 13px; /* 从14px减小到13px */
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-sm {
    padding: 3px 6px; /* 从4px 8px减小到3px 6px */
    font-size: 11px; /* 从12px减小到11px */
}

.no-posts {
    text-align: center;
    padding: 30px 20px; /* 从40px减小到30px */
    color: #666;
}

.no-posts p {
    margin-bottom: 15px; /* 从20px减小到15px */
    font-size: 15px; /* 从16px减小到15px */
}

.main-container {
    width: 990px;
    margin: 0 auto;
    overflow: hidden;
}

.page-header {
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    text-align: center;
    flex-shrink: 0;
}

.liked-posts-list {
    flex: 1;
    overflow-y: auto;
}


.liked-posts-list .liked-post-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.liked-post-item:hover {
    background-color: #f9f9f9;
}

.post-info {
    flex: 1;
}

.post-title {
    margin-bottom: 8px;
}

.title-link {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
}

.title-link:hover {
    color: #23527c;
    text-decoration: underline;
}

.post-action {
    padding-left: 20px;
}

.like-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.like-icon:hover {
    width: 30px;
    height: 30px;
}

.no-liked-posts {
    text-align: center;
    padding: 50px 20px;
}

.empty-state {
    max-width: 400px;
    margin: 0 auto;
}

.empty-state h3 {
    margin: 20px 0 10px;
    color: #666;
}

.empty-state p {
    color: #999;
    margin-bottom: 20px;
}
